/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcTagActionRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   private String mIDList;
/*    */   private String mOp;
/*    */   private String mColor;
/*    */   private String mName;
/*    */   
/* 35 */   public void setTagList(String idList) { this.mIDList = idList; }
/* 36 */   public void setOp(String op) { this.mOp = op; }
/* 37 */   public void setName(String t) { this.mName = t; }
/* 38 */   public void setColor(String c) { this.mColor = c; }
/*    */   
/* 40 */   public String getTagList() { return this.mIDList; }
/* 41 */   public String getOp() { return this.mOp; }
/* 42 */   public String getColor() { return this.mColor; }
/* 43 */   public String getName() { return this.mName; }
/*    */   
/*    */   protected Element getRequestXML()
/*    */   {
/* 47 */     Element request = DocumentHelper.createElement(MailConstants.TAG_ACTION_REQUEST);
/* 48 */     Element a = DomUtil.add(request, "action", "");
/* 49 */     DomUtil.addAttr(a, "op", this.mOp);
/* 50 */     DomUtil.addAttr(a, "id", this.mIDList);
/* 51 */     DomUtil.addAttr(a, "name", this.mName);
/* 52 */     DomUtil.addAttr(a, "color", this.mColor);
/* 53 */     return request;
/*    */   }
/*    */   
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException
/*    */   {
/* 59 */     LmcTagActionResponse response = new LmcTagActionResponse();
/* 60 */     Element a = DomUtil.get(responseXML, "action");
/* 61 */     response.setOp(DomUtil.getAttr(a, "op"));
/* 62 */     response.setTagList(DomUtil.getAttr(a, "id"));
/* 63 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcTagActionRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */